<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\service\ServiceExtraService;

class ServiceExtra extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];


    /**
     * 列表
     *
     */
    public function lists()
    {
        $data = $this->request->post();
        $res = ServiceExtraService::lists($data);
        return json($res);
    }

    /**
     * 加钟
     *
     */
    public function add()
    {
        $data = $this->request->post();
        $res = ServiceExtraService::add($data);
        return json($res);
    }

    /**
     * 支付
     *
     */
    public function pay()
    {
        $data = $this->request->post();
        $res = ServiceExtraService::pay($data);
        return json($res);
    }

}